//
//  MainFindTableView.m
//  Item
//
//  Created by Mac_Xqw on 16/1/29.
//  Copyright © 2016年 Kelly. All rights reserved.
//

#import "MainFindTableView.h"
#import "CheckMoneyViewController.h"
#import "HasSharesViewController.h"
#import "TodayDelViewController.h"
#import "TodaySucViewController.h"
@implementation MainFindTableView


- (void)viewDidLoad {
    [super viewDidLoad];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 4;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
}


-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    switch (indexPath.section) {
        case 0:
            switch (indexPath.row) {
                case 0:
                    [self toCheck];
                    break;
                default:
                    break;
            }
            break;
        case 1:
            switch (indexPath.row) {
                case 0:
                    [self toHasShares];
                    break;
                default:
                    break;
            }
            break;
        case 2:
            switch (indexPath.row) {
                case 0:
                    [self toTodayDel];
                    break;
                default:
                    break;
            }
            break;
        case 3:
            switch (indexPath.row) {
                case 0:
                    [self toTodaySuc];
                    break;
                default:
                    break;
            }
            break;
        default:
            break;
    }
    
}

-(void)toCheck{
    CheckMoneyViewController *FiCheck = [self.storyboard instantiateViewControllerWithIdentifier:@"CheckMoney"];
    [self.navigationController pushViewController:FiCheck animated:NO];
}
-(void)toHasShares{
    HasSharesViewController *FiHasShares = [self.storyboard instantiateViewControllerWithIdentifier:@"HasShares"];
    [self.navigationController pushViewController:FiHasShares animated:NO];
}
-(void)toTodayDel{
    TodayDelViewController *FiTodayDel = [self.storyboard instantiateViewControllerWithIdentifier:@"TodayDel"];
    [self.navigationController pushViewController:FiTodayDel animated:NO];
}
-(void)toTodaySuc{
    TodaySucViewController *FiTodaySuc = [self.storyboard instantiateViewControllerWithIdentifier:@"TodaySuc"];
    [self.navigationController pushViewController:FiTodaySuc animated:NO];
}

@end
